From d9755644c75b0fd5fdc254d441e64f6f6af2305b Mon Sep 17 00:00:00 2001 From: robertl Date: Wed, 6 Jun 2007 20:04:18 +0000 Subject: [PATCH] Read GISTeq's mangled NMEA. --- gpsbabel/nmea.c | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/gpsbabel/nmea.c b/gpsbabel/nmea.c index 841f2483d..0e537a280 100644 --- a/gpsbabel/nmea.c +++ b/gpsbabel/nmea.c @@ -829,6 +829,12 @@ nmea_parse_one_line(char *ibuf) int ckval, ckcmp; char *tbuf = lrtrim(ibuf); + /* + * GISTEQ PhotoTracker (stupidly) puts a bogus field in front + * of the line. Look for it and toss it. + */ + if (0 == strncmp(tbuf, "---,", 4)) tbuf += 4; + if (*tbuf != '$') return; ck = strrchr(tbuf, '*'); -- 2.30.2